package com.raycloud.java.dada.service.inter;

import com.raycloud.java.dada.model.RegisterMerchant;
import com.raycloud.java.dada.model.UpdateShop;
import com.raycloud.java.dada.result.CreateShopResult;
import com.raycloud.java.dada.result.ResultModel;

import java.util.List;

/**
 * Created by:  intelliJ IDEA
 *
 * @Author albert
 * @Description:店铺接口
 * @Date:2017/6/23 下午2:38
 * @package:com.raycloud.java.dada.service.inter
 * @Modified By:
 */
public interface MerchantService {

    /**
     * 注册商户
     *
     * @param registerMerchant
     * @return  注册成功的话返回
     * ResultModel 中result是商户id
     */
    public ResultModel registerMerchant(RegisterMerchant registerMerchant) throws Exception;

    /**
     * 创建门店
     *
     * @param createShops
     * @return
     */
    public CreateShopResult createShop(List<Object> createShops) throws Exception;

    /**
     * 更新店铺
     *
     * @param shop
     * @return
     */
    public ResultModel updateShop(UpdateShop shop) throws Exception;


}
